package org.dxw.common.excep;

import lombok.Data;
import org.dxw.common.enums.GlobalResultEnum;

/**
 * uat修改1
 * uat修改2
 * @description:
 * @author: dxw
 * @create: 2022-04-05 00:09
 **/
@Data
public class BusinessExcep extends RuntimeException{

    private String code;

    private String msg;

    public BusinessExcep() {
        this.code = GlobalResultEnum.BUSI_COMMON.getCode();
        this.msg = GlobalResultEnum.BUSI_COMMON.getCode();
    }

    public BusinessExcep(String msg) {
        this.code = GlobalResultEnum.BUSI_COMMON.getCode();
        this.msg = msg;
    }

    public BusinessExcep(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public BusinessExcep(GlobalResultEnum GlobalResultEnum) {
        this.code = GlobalResultEnum.getCode();
        this.msg = GlobalResultEnum.getMsg();
    }


}